package com.card.client.service;

import java.util.ArrayList;

import com.card.client.entry.UserInfo;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface UserInfoManageServiceAsync {

	void addUserInfo(UserInfo userInfo, AsyncCallback<Void> callback);

	void getAllUserInfo(AsyncCallback<UserInfo[]> callback);

	void delUserInfo(Long id, AsyncCallback<Void> callback);

	void updateUserInfo(UserInfo userInfo, AsyncCallback<Void> callback);

	void getLoginedUser(AsyncCallback<UserInfo> callback);

	void setLoginedUser(UserInfo userInfo, AsyncCallback<Void> callback);

	void addLoginedUserList(UserInfo userInfo, AsyncCallback<Void> callback);

	void getLoginedUserList(AsyncCallback<ArrayList<UserInfo>> callback);

	void removeLoginedUser(AsyncCallback<Void> callback);

	void refreshLoginedUserList(UserInfo userInfo, AsyncCallback<Void> callback);

	void removeLoginedUserToList(UserInfo userInfo, AsyncCallback<Void> callback);

}
